package com.hs.gs.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import com.hs.gs.domain.MaritalStatus;
import javax.persistence.Column;
import javax.persistence.ManyToOne;

@RooJavaBean
@RooToString
@RooEntity(finders = { "findEmployeesByUserName" })
public class Employee {

    private String name;

    @ManyToOne
    private MaritalStatus maritalStatus;

    @ManyToOne
    private JobTitle jobTitle;

    @ManyToOne
    private PoliticalStatus politicalStatus;

    @ManyToOne
    private Gender gender;

    @Column(unique = true)
    private String userName;

    private String password;
}
